package com.generalbackend.role.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
* ClassName: RolePermission
* @Description 角色权限关联表实体类
* @author tim.xie
* @date 2021-12-16 11:11
*/

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_role_permission")
public class RolePermission  {
	/**
	 * 角色ID
	 */
	@JsonSerialize(using = ToStringSerializer.class)
    @TableField("role")
    private Long role;
	/**
	 * 权限表ID
	 */
    @TableField("permission")
    private String permission;
	/**
	 * 创建时间
	 */
    @TableField("create_time")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
	/**
	 * 更新时间
	 */
    @TableField("gmt_modified")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gmtModified;


}